package cn.org.donald.pojo.dto.game;

import cn.org.donald.framework.base.BaseModel;
import cn.org.donald.framework.validate.Insert;
import cn.org.donald.framework.validate.Update;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * feature添加或修改dto
 * @author : Donald
 * @since : 2020/12/12 15:04
 */
public class FeatureDto extends BaseModel {

    @NotNull(message = "id不能为空",groups = Update.class)
    @Null(message = "id必须为空",groups = Insert.class)
    private Long id;

    @NotBlank(message = "特性名称不能为空")
    private String featureName;

    private String icon;

    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFeatureName() {
        return featureName;
    }

    public void setFeatureName(String featureName) {
        this.featureName = featureName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
